package org.jef.upms.api.feign;

import org.jef.core.constant.ServiceNameConstants;
import org.jef.core.util.R;
import org.jef.feign.annotation.NoToken;
import org.jef.upms.api.entity.SysRole;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @version 1.0
 * @description: 远程角色
 * @author: ChengZhi 0336
 * @create: 2024-09-11 11:33
 **/
@FeignClient(contextId = "remoteRoleService", value = ServiceNameConstants.UMPS_SERVICE)
public interface RemoteRoleService {

    @NoToken
    @GetMapping("/role/details/{id}")
    R<SysRole> getRoleByRoleId(@PathVariable("id") Long roleId);
}
